{{- define "cardlist" -}}

<div class="cardlist">
  {{ range where .Site.RegularPages "Section" "post" }}
    <div class="card">
      <a href="">
        <img class="imgModify" src="https://www.w3school.com.cn/i/eg_tulip.jpg">
        <div style="font-size: 20px;top: -35px;height: 26px;" class="titlediv"><text class="title">{{.Title}}</text></div>
      </a>
    </div>
    {{ end }}
</div>

{{- end -}}